package dsl.common.domain;

/**
 * 表示脚本的操作
 */
public class Action {
    /**
     * 指代操作类型，与枚举类{@link dsl.common.domain.ActionType}的的索引值相对应
     */
    public int Operation;
    /**
     * 操作数的名字，通过变量表{@link dsl.common.domain.VariableList}取得操作数的具体值
     */
    public String Operand;

    public Action() {
        // do nothing
    }

    public Action(int operation, String operand) {
        Operation = operation;
        Operand = operand;
    }

    @Override
    public String toString() {
        return "[Operation= " + Operation + ", Operand= " + Operand + "]";
    }
}
